home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / formats / rol_form.txt < prev    next >
Encoding:
Internet Message Format  |  1994-05-11  |  2.8 KB

  1. From: holmes@mrx.webo.dg.com (Chris Holmes)
  2. Subject: Adlib .ROL file format
  3. Date: Wed, 26 Aug 92 12:04:43 GMT
  4.  
  5. I requested this a while back and got a couple of requests for a summary,
  6. so here goes:
  7.  
  8. Files containing note information (i.e. songs) are suffixed with ".ROL".
  9. ("File version" and "editing scale" are non-musical information used by Visual
  10. Composer (TM).)
  11.  
  12. Structure of .ROL files:
  13. __________________________________________________________________
  14.  
  15. fld #   size   type     description
  16.         (bytes)
  17.  
  18. 1       2       int     file version, major
  19. 2       2       int     file version, minor
  20. 3       40      char    unused
  21. 4       2       int     ticks per beat
  22. 5       2       int     beats per measure
  23. 6       2       int     editing scale (Y axis)
  24. 7       2       int     editing scale (X axis)
  25. 8       1       char    unused
  26. 9       1       char    0 = percussive mode
  27.                         1 = melodic mode
  28. 10      90      char    unused
  29. 11      38      char    filler
  30. 12      15      char    filler
  31. 13      4       float   basic tempo
  32.  
  33. Field 14 indicates the number of times to repeat fields 15 and 16:
  34.  
  35. 14      2       int     number of tempo events
  36. 15      2       int     time of events, in ticks
  37. 16      4       float   tempo multiplier (0.01 - 10.0)
  38.  
  39. The remaining fields (17 to 34) are to be repeated for each of 11 voices:
  40.  
  41. 17      15      char    filler
  42. 18      2       int     time (in ticks) of last note +1
  43.  
  44. Repeat the next two fields (19 and 20) while the summation of field 20 is
  45. less than the value of field 18:
  46.  
  47. 19      2       int     note number: 0 => silence
  48.                         from 12 to 107 => normal note (you must
  49.                         subtract 60 to obtain the correct value
  50.                         for the sound driver)
  51. 20      2       int     note duration, in ticks
  52. 21      15      char    filler
  53.  
  54. Field 22 indicates the number of times to repeat fields 23 to 26:
  55.  
  56. 22      2       int     number of instrument events
  57. 23      2       int     time of events, in ticks
  58. 24      9       char    instrument name
  59. 25      1       char    filler
  60. 26      2       int     unused
  61. 27      15      char    filler
  62.  
  63. Field 28 indicates the number of times to repeat fields 29 and 30:
  64.  
  65. 28      2       int     number of volume events
  66. 29      2       int     time of events, in ticks
  67. 30      4       float   volume multiplier (0.0 - 1.0)
  68. 31      15      char    filler
  69.  
  70. Field 32 indicates the number of times to repeat fields 33 and 34:
  71.  
  72. 32      2       int     number of pitch events
  73. 33      2       int     time of events, in ticks
  74. 34      4       float   pitch variation (0.0 - 2.0, nominal is 1.0)
  75.  
  76. Notes
  77. _____
  78.  
  79. Fields #1 and #2 should be set to 0 and 4 respectively. Field #10 should
  80. be filled with zeros.
  81.